package com.xmx.service.impl;

import com.xmx.entity.ServiceType;
import com.xmx.mapper.IServiceTypeMapper;
import com.xmx.service.IServiceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * overview：
 * author:ZhaoZH
 * 2023年05月07日 17:52
 */

@Service
public class IServiceTypeServiceImpl implements IServiceTypeService {
    @Autowired
    private IServiceTypeMapper iServiceTypeMapper;


    @Override
    public List<ServiceType> queryAllService() {
        return iServiceTypeMapper.queryAllService();
    }

    @Override
    public void addNewService(ServiceType service) {
        iServiceTypeMapper.addNewService(service);
    }

    @Override
    public void deleteServiceByid(Integer id) {
        iServiceTypeMapper.deleteServiceByid(id);
    }
}
